<div class="panel panel-default" av-if="typeof admin_get!='undefined'">
	<div class="panel-body">
		<img av-if="admin_get.merchant_logo_image_id" 
		av-attr="[src] application_config.qiniu_domain+admin_get.merchant_logo_image_id+'?imageView2/1/w/40'" 
		>
		<div>角色ID：
			{{admin_get.admin_id}}
		</div>
		<div>角色名称：
			{{admin_get.admin_name}}
		</div>
		<div>角色简介：
				{{admin_get.admin_info}}
		</div>
		<div>更新时间：
				{{av.date("yyyy/MM/dd HH:mm EEE", parseInt(admin_get.admin_update_time) * 1000)}}
		</div>
		<div>操作：
			<a av-attr="[href] av.router(av.router().url,'index.html#/admin/admin_edit?id='+admin_get.admin_id).href"
			 class="btn btn-default btn-xs">
			<span
					class="glyphicon glyphicon-edit"></span>编辑</a></div>
	</div>
</div>


<a av-attr="[href] av.router(av.router().url,'index.html#/admin/admin_user_add').href"
 class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> 添加</a>
<button class="btn btn-danger" type="button" av-event="[click] eventRemove()"
style="margin-left:5px;"><span class="glyphicon glyphicon-trash"></span>
	删除</button>
	<button class="btn btn-default" av-event="[click] eventSearch(:node,:event)" type="button" style="margin-left: 5px;"><span class="glyphicon glyphicon-filter"></span> 筛选</button>
	<span av-if="checkRouterAnchorQuerySearch()" class="label label-default" style="margin-left: 10px;">存在筛选</span>

<hr />
<table class="table table-striped">
	<thead>
		<tr>
			<th><input type="checkbox" checkbox="checkbox-all"></th>
			<th>#</th>
			<th>
				<a href="javascript:;" av-event="[click] eventSort(:node,:event,'user_nickname_asc', 'user_nickname_desc')">
					<span av-if="existSort('user_nickname_asc', 'user_nickname_desc')" class="glyphicon"
						av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('user_nickname_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('user_nickname_desc')}">
					</span>用户昵称</a>/
				<a href="javascript:;"
					av-event="[click] eventSort(:node,:event,'user_phone_verify_list_asc', 'user_phone_verify_list_desc')">
					<span av-if="existSort('user_phone_verify_list_asc', 'user_phone_verify_list_desc')" class="glyphicon"
						av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('user_phone_verify_list_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('user_phone_verify_list_desc')}">
					</span>手机信息</a>

			</th>
			<th>简介</th>
			<th>
				<a href="javascript:;" av-event="[click] eventSort(:node,:event,'state_asc', 'state_desc')">
					<span av-if="existSort('state_asc', 'state_desc')" class="glyphicon"
						av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('state_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('state_desc')}">
					</span>状态</a>
			</th>
			<th>
				<a href="javascript:;" av-event="[click] eventSort(:node,:event,'update_time_asc', 'update_time_desc')">
					<span av-if="existSort('update_time_asc', 'update_time_desc')" class="glyphicon"
						av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('update_time_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('update_time_desc')}">
					</span>更新时间</a>
			</th>

			<th av-if="typeof admin_get=='undefined'">
				<a href="javascript:;" av-event="[click] eventSort(:node,:event,'admin_id_asc', 'admin_id_desc')">
					<span av-if="existSort('admin_id_asc', 'admin_id_desc')" class="glyphicon"
						av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('admin_id_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('admin_id_desc')}">
					</span>管理角色</a>
			</th>

			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<tr av-if="list && list.data && list.data.length" av-for="(value,index)list.data"
			av-event="[dblclick] eventTrDblclick(:node,:event)" av-attr="[data-id] value.user_id"
			data-checkbox="checkbox">
			<th><input type="checkbox" checkbox="checkbox" av-attr="[data-id] value.user_id"></th>
			<td>{{parseInt(index)+1+((parseInt(list.page_now) - 1) * list.page_size)}}</td>
			<td style="max-width: 250px;">
				<div style="max-width: 250px;display: inline-block;">
					<img av-if="value.user_logo_image_id"
						av-attr="[src] application_config.qiniu_domain+value.user_logo_image_id+'?imageView2/1/w/40'"
						class="img-circle">
					<span av-if="value.user_nickname">
						{{value.user_nickname}}
					</span>
					<span av-else style="color: #999999;">未设置昵称</span>
					<span av-if="value.user_phone_verify_list" style="word-wrap:break-word;">
						({{value.user_phone_verify_list}})</span>
					<span av-else style="color: #999999;">无认证手机</span>
				</div>
			</td>
			<td>
				<div class="tips" data-title="查看管理员简介"
					style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width: 200px;cursor: pointer;"
					av-event="[click] eventShowInfo(value.admin_user_info)" >
					{{value.admin_user_info}}</div>
			</td>
			<td>
				<span class="label label-success" av-if="value.admin_user_state">正常</span>
				<span class="label label-danger" av-else>封禁</span>
			</td>
			<td>
				{{av.date("yyyy/MM/dd HH:mm EEE", parseInt(value.admin_user_update_time) * 1000)}}
			</td>
			<td av-if="typeof admin_get=='undefined'"><a av-attr="[href] av.router(av.router().url,'index.html#/admin/admin_edit?id='+value.admin_id).href">
					{{value.admin_name}}</a>
			</td>


			<td>
				<a av-attr="[href] '#/admin-adminUserEdit?id='+value.user_id" class="btn btn-default btn-sm"><span
						class="glyphicon glyphicon-edit"></span>编辑</a>
				<a av-if="typeof admin_get=='undefined'" av-attr="[href] '#/admin-adminUserList/?search=%257B%2522admin_id%2522%253A%2522'+value.admin_id+'%2522%257D'"
					class="btn btn-default btn-sm">
					<span class="glyphicon glyphicon-filter"></span> 只查看该管理角色
				</a>
			</td>
		</tr>
		<tr av-else>
			<td colspan="10" align="center">无数据</td>
		</tr>
	</tbody>
</table>



<div av-if="list.data.length" style="text-align: center;">
	<button class="btn btn-default" data-page="1" av-class="{'disabled':isFirstPage(list.page_now)}" type="button"
		style="margin-right: 5px;" av-event="[click] eventPageRequest(:node,:event)">首页</button>
	<button class="btn btn-default" av-attr="[data-page] parseInt(list.page_now) - 1"
		av-class="{'disabled':isFirstPage(list.page_now)}" type="button" style="margin-right: 5px;"
		av-event="[click] eventPageRequest(:node,:event)">上一页</button>
	<button class="btn btn-default" type="button" style="margin-right: 5px;">
		第{{list.page_now}}页
		/ 共{{list.page_count}}页
		/ 有{{list.row_count}}条数据</button>
	<button class="btn btn-default" type="button" av-attr="[data-page] parseInt(list.page_now) + 1"
		av-class="{'disabled':isEndPage(list.page_now, list.page_count)}" style="margin-right: 5px;"
		av-event="[click] eventPageRequest(:node,:event)">下一页</button>
	<button class="btn btn-default" type="button" av-attr="[data-page] list.page_count"
		av-class="{'disabled':isEndPage(list.page_now, list.page_count)}" style="margin-right: 5px;"
		av-event="[click] eventPageRequest(:node,:event)">尾页</button>
</div>
<div class="form-inline" style="text-align: center;margin-top: 10px;">
	<div class="form-group" style="margin-right: 5px;">
		<input type="text" class="form-control" input-page="requestPageRequestValue" placeholder="输入跳转页"
			style="width: 100px;">
	</div>
	<button type="button" class="btn btn-default" av-event="[click]eventPageRequestSubmit(:node,:event)">跳转</button>
</div>